export class Mess{
  private _time: any;
  private _message:any;
  private _flag:MessFlag;

  constructor(time: any, message: string, flag: MessFlag) {
    this._time = time;
    this._message = message;
    this._flag = flag;
  }

  set time(_time){
    this._time = _time;
  }
  get time(){
    return this._time;
  }

  get message(): any {
    return this._message;
  }

  set message(value: any) {
    this._message = value;
  }

  get flag(): MessFlag {
    return this._flag;
  }

  set flag(value: MessFlag) {
    this._flag = value;
  }
}
export enum MessFlag{
  robot,me
}
